package com.ice.netty.modbus.config;

import com.ice.remoting.NettyServerConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "modbus.server")
public class NettyTestConfig extends NettyServerConfig {

    // 端口
    private int port = 4000;

    @Override
    public Integer getListenPort() {
        return this.port;
    }
}
